<?php

use think\facade\Route;

//Route::resource('demo/articles', 'demo/Articles');
Route::rule('getopenid','wxapp/Wxopenid/index','GET'); //获取openid
Route::rule('user/login','wxapp/Login/index','POST'); //用户登陆注册
Route::rule('user/binding','wxapp/Login/binding','POST|PUT'); //用户绑定手机号/店铺
Route::rule('sendmsg','wxapp/Message/index','POST'); //验证码

Route::rule('news','wxapp/Index/news','GET'); //无用测试
//首页
Route::rule('banner','wxapp/Index/index','GET');  //首页banner
Route::rule('goods/hot','wxapp/Index/hot','GET'); //首页精选商品
Route::rule('goods/star','wxapp/Index/star','GET'); //首页明星商品

Route::rule('coupon/list','wxapp/Index/coupon','GET'); //返回优惠券
Route::rule('coupon/add','wxapp/Index/couponAdd','POST'); //领取优惠券
Route::rule('matchshop','wxapp/Index/matchshop','POST'); //经纬度店铺推荐

Route::rule('about','wxapp/Index/about','GET'); //关于束式
Route::rule('diary','wxapp/Index/diary','GET|POST'); //日记

//皮肤测试
Route::rule('skin/rule','wxapp/Skin/index','GET');//皮肤测试规则
Route::rule('skin/list','wxapp/Skin/lst','GET');//皮肤测试试题列表
Route::rule('skin/speed','wxapp/Skin/speed','POST');//答题进度保存
Route::rule('skin/result','wxapp/Skin/result','GET');//皮肤测试结果
//活动
Route::rule('activity/info','wxapp/Activity/index','GET'); //获取会员活动
Route::rule('activity/sign','wxapp/Activity/sign','POST'); //活动报名


//店铺首页
Route::rule('shop/info','wxapp/Shop/index','GET'); //店铺首页  店铺信息

//商品 
Route::rule('goods/cate','wxapp/Goods/cate','GET'); //商品分类
Route::rule('goods/all','wxapp/Goods/index','GET'); //返回店铺商品
Route::rule('goods/info','wxapp/Goods/info','GET'); //商品详情

//评论 
Route::rule('comment/lst','wxapp/comment/index','GET');//获取商品评论
Route::rule('comment/reply','wxapp/comment/reply','POST');//店主回复评论
Route::rule('comment/score','wxapp/comment/score','GET');//获取商品评分

//点赞
Route::rule('like/add','wxapp/Like/index','POST'); //点赞

//收藏
Route::rule('collection/add','wxapp/Collection/index','POST'); //添加收藏删除收藏

Route::rule('cart/lst','wxapp/Cart/index','GET'); //获取购物车商品,修改购物车,删除购物车
Route::rule('cart/add','wxapp/Cart/add','POST'); //添加购物车
Route::rule('cart/delete','wxapp/Cart/delete','DELETE'); //清除购物车  失效商品
Route::rule('cart/put','wxapp/Cart/put','PUT'); //购物车商品修改

//订单
Route::rule('order/add','wxapp/Order/index','POST'); //提交订单
Route::rule('order/pay','wxapp/WxPay/index','POST'); //支付
Route::rule('order/payNotify','wxapp/WxPay/payNotify','POST'); //支付回调

//用户中心
Route::rule('user/info','wxapp/User/index','GET'); //用户中心
Route::rule('user/scoreorder','wxapp/User/scoreorder','GET'); //积分排名
Route::rule('user/integral','wxapp/User/integral','GET'); //我的积分副本--积分记录
Route::rule('user/myin','wxapp/User/myin','GET'); //我的积分副本--积分余额
Route::rule('user/orderAll','wxapp/User/orderAll','GET'); //我的订单

Route::rule('comment/scoreAdd','wxapp/comment/scoreAdd','POST');//用户商品评分
Route::rule('comment/add','wxapp/comment/add','POST');//发表商品评论
Route::rule('comment/user','wxapp/comment/user','GET'); //我的评论
Route::rule('comment/delete','wxapp/comment/delete','DELETE'); //删除评论
Route::rule('user/infoput','wxapp/User/infoput','POST'); //修改我的信息

Route::rule('user/address','wxapp/Address/index','GET'); //提交订单时--用户地址 
Route::rule('address/list','wxapp/Address/list','GET');//用户地址
Route::rule('address/add','wxapp/Address/add','POST');//用户地址添加
Route::rule('address/put','wxapp/Address/put','PUT');//用户地址修改
Route::rule('address/delete','wxapp/Address/delete','DELETE');//用户地址删除

Route::rule('user/orderAll','wxapp/User/orderAll','GET'); //我的订单

Route::rule('diary/user','wxapp/Diary/index','GET'); //个人中心--我的日记
Route::rule('diary/add','wxapp/Diary/add','POST'); //个人中心--发表日记
Route::rule('diary/delete','wxapp/Diary/delete','DELETE'); //个人中心--删除日记


Route::rule('coupon/user','wxapp/Coupon/index','GET'); //我的优惠券
Route::rule('coupon/delete','wxapp/Coupon/delete','DELETE');//清空过期优惠券

Route::rule('user/sign','wxapp/User/sign','GET'); //我的报名

Route::rule('collection/user','wxapp/Collection/user','GET'); //我的收藏
Route::rule('collection/delete','wxapp/Collection/delete','DELETE'); //我的收藏 删除

Route::rule('problem/list','wxapp/Problem/index','GET'); //常见问题

Route::rule('feedback/list','wxapp/Feedback/index','GET'); //意见反馈
Route::rule('feedback/son','wxapp/Feedback/son','GET'); //意见反馈二级页面
Route::rule('feedback/add','wxapp/Feedback/add','POST'); //意见反馈提交


//积分商城
Route::rule('score/list','wxapp/Score/index','GET'); //积分商城首页
Route::rule('score/order','wxapp/Score/order','GET'); //兑换记录
//Route::rule('score/orderDelete','wxapp/Score/orderDelete','POST');//取消订单
Route::rule('score/goodsinfo','wxapp/Score/goodsinfo','GET'); //积分商城商品详情

Route::rule('score/change','wxapp/Score/change','POST'); //立即兑换
//秒杀商城
Route::rule('seckill/time','wxapp/Seckill/time','GET');//秒杀商城 时间标题
Route::rule('seckill/list','wxapp/Seckill/index','GET'); //秒杀商城  商品
Route::rule('seckill/info','wxapp/Seckill/info','GET'); //秒杀商城  商品详情
Route::rule('seckill/buy','wxapp/Seckill/buy','POST'); //秒杀商城提交订单
//图片上传


Route::rule('img/upload','wxapp/Upload/index','POST'); //图片

Route::rule('refund/apply','wxapp/Refund/index','POST'); //退款申请

/**********店员使用功能 */
Route::rule('clerk/add','wxapp/Clerk/index','POST'); //店员注册申请
Route::rule('clerk/info','wxapp/Clerk/info','GET'); //店员个人中心
Route::rule('clerk/my','wxapp/Clerk/my','GET'); //店员收支记录
Route::rule('clerk/cash','wxapp/Clerk/cash','POST|GET'); //提现申请
Route::rule('clerk/rcode','wxapp/Clerk/rcode','GET'); //二维码
Route::rule('clerk/myuser','wxapp/Clerk/myuser','GET'); //我的用户
Route::rule('clerk/sale','wxapp/Clerk/sale','GET'); //销售情况
Route::rule('clerk/write','wxapp/Clerk/write','GET|POST|DELETE'); //核销

//店铺 使用功能
Route::rule('store/add','wxapp/Store/index','POST'); //店铺注册申请
Route::rule('store/info','wxapp/Store/info','GET'); //店铺余额
Route::rule('store/my','wxapp/Store/my','GET'); //店铺余额记录
Route::rule('store/rcode','wxapp/Store/rcode','GET'); //店铺员工注册二维码
Route::rule('store/goodscount','wxapp/Store/goodscount','GET'); //店铺--商品管理--商品统计
Route::rule('store/online','wxapp/Store/online','POST'); //店铺--商品管理--商品上架
Route::rule('store/notice','wxapp/Store/notice','GET|POST'); //店铺--商品管理--店铺公告
Route::rule('store/clerk','wxapp/Store/clerk','GET'); //店铺--我的店员
Route::rule('store/shop','wxapp/Store/shop','POST'); //店铺--修改店铺信息
Route::rule('store/user','wxapp/Store/user','GET'); //店铺--我的用户
Route::rule('store/order','wxapp/Store/order','GET'); //店铺--我的订单
Route::rule('store/refund','wxapp/Store/refund','GET|POST'); //店铺--我的退款
Route::rule('store/acvitity','wxapp/Store/acvitity','GET|POST'); //店铺--我的活动

//束式员工  staff
Route::rule('staff/info','wxapp/Staff/index','GET'); //束式员工--个人中心
Route::rule('staff/rcode','wxapp/Staff/rcode','GET'); //束式员工--二维码
Route::rule('staff/shop','wxapp/Staff/shop','GET'); //束式员工--我邀请的店铺
Route::rule('staff/sales','wxapp/Staff/sales','GET');
Route::rule('staff/goods','wxapp/Staff/goods','GET');